package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DiscountBeforehandQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.DiscountBeforehandQueryResponse;
/**
 * 贴现预查询
 * @author hty
 *
 */
public class DraftDiscountBeforehandQueryTest extends BaseRequest{
public void testBalanceQueryRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_DISCOUNT_BEFOREHAND_QUERY.getTransCode());
		
		DiscountBeforehandQueryRequest data = DiscountBeforehandQueryRequest.newBuilder()
																	.setAcceptBankNo("313655091983")
																	.setCertId("931310201876062725")
																	.setFaceAmount("100")
																	.setApplyDate("2022/10/30")
																	.setDueDate("2022/11/27")
																	.build()
																	;
		rf.transType(TransType.DRAFT_DISCOUNT_BEFOREHAND_QUERY.getTransCode())
		.responseClass(DiscountBeforehandQueryResponse.class)
		.data(data)
		;
		
		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}

}
